// validate function
import Cookies from 'js-cookie';

export const validate = function (next, replace, callback) {
  callback();
};

export const canTest = function (next, replace, callback) {
  if (Cookies.get('name') && Cookies.get('id')) {
    callback();
    return;
  }
  replace('/interactive/knowledge');
  callback();
};

